package com.cake.liulanxiangzhu.service;

import com.cake.liulanxiangzhu.pojo.dto.AdminBannerDTO;
import com.cake.liulanxiangzhu.pojo.dto.AdminBannerInsertDTO;
import com.cake.liulanxiangzhu.pojo.entity.AdminBanner;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cake.liulanxiangzhu.pojo.vo.AdminBannerVO;

import java.util.List;

/**
 * @author Administrator
 * @description 针对表【admin_banner】的数据库操作Service
 * @createDate 2023-01-13 13:39:31
 */
public interface AdminBannerService extends IService<AdminBanner> {
    /**
     *
     * <span>增加轮播图
     * @param adminBannerInsertDTO
     * @return void
     * @author dinghao
     * @date 2023/1/14 12:11
     */
    void addNew(AdminBannerInsertDTO adminBannerInsertDTO);

    /**
     *
     * <span> 删除轮播图
     * @param bannerId
     * @return void
     * @author dinghao
     * @date 2023/1/14 12:11
     */
    void deleteByID(Integer bannerId );

    /**
     *
     * <span>修改轮播图数据
     * @param adminBannerDTO
     * @return void
     * @author dinghao
     * @date 2023/1/14 12:59
     */
    void updateById(AdminBannerDTO adminBannerDTO);

    /**
     *
     * <span>根据ID查询轮播图数据
     * @param
     * @return List<AdminBannerVO>
     * @author dinghao
     * @date 2023/1/14 13:35
     */
    List<AdminBannerVO> listBanner();

    AdminBannerVO queryBanner(Integer bannerId);


}
